const mongoose = require("mongoose");

const schema = mongoose.Schema({
    // 订单集合（orders）
    schedulesId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "schedules"
    }, // 排片 id
    usersId: {
        type: mongoose.Schema.Types.ObjectId,
        ref: "users"
    },//用户 id
    seats: Array,//座位
})
mongoose.model("orders", schema, "orders");